package com.ues21.awt.view;
import java.awt.Dialog;
import javax.swing.*;
import java.awt.Frame;
public abstract class AbstractDialogo extends JDialog{
	protected int w=200;
	protected int h=200;
	
	public AbstractDialogo(JFrame owner){
		super(owner);
		setLayout(null);
	}
	
	protected void setPosition(JFrame owner){
		int ox = 0;
		int oy = 0;
		owner.getComponentAt(ox, oy);
		int px = ((int)(owner.getX()+(ox+(this.w)/2)));
		int py = ((int)(owner.getY()+(oy+(this.h)/2)));
		setBounds(px,py,this.w,this.h);		
		
	}
}
